var ddf={};
/*
$(document).ready(function() { 
	
		load(ddf.index.index_js,1,'$ddf_index.loadIndex',"");
		 //加载左边菜单
		 loadMenu();
	}); 
*/

/**
 * 创建用户首页对象
 */
ddf.index={
		index_js:CTX+"/admin/shop/js/index/index.js",
		queryShopMenus:CTX+"/shopadmin/Login/queryUserMenus.do",
		queryShowOperateShop:CTX+"/shopadmin/Login/queryShowOperate.do",
};


/**
 * 创建订单管理对象
 */
ddf.order={
		order_js:order_js=CTX+"/admin/shop/js/order/orderInit.js",
		
		getMyOrders:CTX+"/shopadmin/Order/getMyOrders.do",//订单查询
		
		getPaymentsList:CTX+"/shopadmin/Order/getPaymentsList.do",//支付方式列表
		
		getErpOrderTypesList:CTX+"/shopadmin/Order/getErpOrderTypesList.do",//订单类型列表
		
		getOrderstatusList:CTX+"/shopadmin/Order/getOrderstatusList.do",//订单状态
		
		getOrderDetails:CTX+"/shopadmin/Order/getOrderDetails.do",//订单详情
		
		processOrder:CTX+"/shopadmin/Order/processOrder.do",//取消订单
		
		printOrderDetail:CTX+"/shopadmin/Order/printOrder.do",//打印订单
		
		loadReasonList:CTX+"/shopadmin/Order/getReasonList.do",//取消原因列表
		
		remindToUser:CTX+"/shopadmin/Order/remindToUser.do",//提醒用户发货
		
		checkOrderAdd:CTX+"/shopadmin/Order/checkOrderAdd.do",//
		
		setPrintType :CTX+"/shopadmin/Order/setPrintType.do"//
};


/**
 * 创建商品管理对象
 */
ddf.merchandise={
		 merchandise_js:CTX+"/admin/shop/js/merchandise/merchandise.js",
		 
		 merchandise_typeTree_js:CTX+"/admin/shop/js/merchandise/merchandise_typeTree.js",//分类树脚本
		
		 getMerchandiseList:CTX+"/shopadmin/Merchandise/getMerchandList.do",//商品列表
		
		 getMerchandiseDetail:CTX+"/shopadmin/Merchandise/getMerchandDetail.do",//商品详情

		 findTypeForId:CTX+"/shopadmin/Merchandise/findTypeForId.do",//通过id,查询商品二级分类
		
		 updateGoodsInfoById:CTX+"/shopadmin/Merchandise/saveGoodsInfoById.do",//更新商品

		 getDUnitsList:CTX+"/shopadmin/Merchandise/getDUnitsList.do",//获取单位列表

		 getRsVendorsList:CTX+"/shopadmin/Merchandise/getQueryRsVendorsList.do",//获取生产商列表

		 getErpMerchandiseTypesListSystem:CTX+"/shopadmin/Merchandise/getErpMerchandiseTypesListSystem.do",//获取商品分类
		 
		 getErpMerchandiseTypesList:CTX+"/shopadmin/Merchandise/getErpMerchandiseTypesList.do",//获取商品分类

		 getGoodsPhotoList:CTX+"/shopadmin/Merchandise/getGoodsPhotoList.do",//获取商品图片
		
		 addGoodsInfo:CTX+"/shopadmin/Merchandise/addGoodsInfo.do",//添加商品

		 delPic:CTX+"/shopadmin/Merchandise/delPic.do",//删除商品图片
		 
		 getMerchandiseTypeList:CTX+"/shopadmin/Merchandise/getMerchandiseTypeList.do",//获取商品分类(商品分类管理用到)
			
		 addMerchandiseType:CTX+"/shopadmin/Merchandise/addMerchandiseType.do",//添加商品分类
			
		 updateMerchandiseType:CTX+"/shopadmin/Merchandise/updateMerchandiseType.do",//修改商品分类
		
		 deleteMerchandiseType:CTX+"/shopadmin/Merchandise/deleteMerchandiseType.do",//删除商品分类
		 
		 checkBarcode:CTX+"/shopadmin/Merchandise/checkBarcode.do",//检查条形码是否存在
		 
		 batchUpdateClose:CTX+"/shopadmin/Merchandise/batchUpdateClose.do",//批量上下架
		 
		 batchUpdateRecommend:CTX+"/shopadmin/Merchandise/batchUpdateRecommend.do",//批量推荐和批量取消推荐
		 
		 updateMerchandiseField:CTX+"/shopadmin/Merchandise/updateMerchandiseField.do",//更新某个字段
		 
		 updateMerchandiseTypeSort:CTX+"/shopadmin/Merchandise/updateMerchandiseTypeSort.do",//保存分类排序

};

/**
 * 创建商家对象
 */
ddf.shop={
		 shop_js:CTX+"/admin/shop/js/shop/shop.js",

		 getErpShopTypeList:CTX+"/shopadmin/Shop/getErpShopTypeList.do",//商家类型
		
		 findAllProvince:CTX + "/shopadmin/SysParam/findAllProvince.do",//查找全省
		
		 findCityByProvince:CTX + "/shopadmin/SysParam/findCityByProvince.do",//查找城市
		
		 findRegionByCity:CTX + "/shopadmin/SysParam/findRegionByCity.do",//查找区域
		
		 getShopsById:CTX + "/shopadmin/Shop/queryShop.do",//商家详情
		 
		 getErpDeliveryList:CTX+"/shopadmin/Shop/getErpDeliveryList.do",//配送方式列表
		
		 editShop:CTX + "/shopadmin/Shop/editShop.do",//编辑商家	
		 
		 getBanksParams:CTX + "/shopadmin/Banks/getBanksParams.do",//银行列表和证件类型列表
		 
		 updateBusinessStatus:CTX + "/shopadmin/Shop/updateBusinessStatus.do",//编辑营业状态	
		 
		 queryShopPhoto:CTX + "/shopadmin/Shop/queryShopPhoto.do",//加载商家相册	
		 
		 //insertShopPhoto:CTX + "/shopadmin/Shop/insertShopPhoto.do",//添加商家相册	
		 
		 updateShopPhoto:CTX + "/shopadmin/Shop/updateShopPhoto.do",//更新商家相册	
		 
		 deleteShopPhoto:CTX + "/shopadmin/Shop/deleteShopPhoto.do",//删除商家相册	
		 
		 shopTable_js:CTX+"/shopadmin/js/shopadmin/shopTable.js",
		 
		 getErpShopTableList:CTX+"/shopadmin/Shop/getErpShopTableList.do",//桌台列表
		 
		 addShopTable:CTX+"/shopadmin/Shop/addErpShopTable.do",//添加桌台
		 
		 shopTableDetail:CTX+"/shopadmin/Shop/shopTableDetail.do",//桌台详情
		 
		 updateShopTable:CTX+"/shopadmin/Shop/updateErpShopTable.do",//更新桌台
		 
		 saveDomain:CTX+"/shopadmin/Shop/saveDomain.do",//设置二级域名
		 
		 checkIsReg:CTX+"/shopadmin/Shop/checkIsReg.do",//检验二级域名是否被注册过
		 
		 getDomainByShopId:CTX+"/shopadmin/Shop/getDomainByShopId.do"//获取个性域名
};

/**
 * 创建会员管理对象
 */
ddf.member={
		 member_js:CTX+"/admin/shop/js/member/member.js",//会员 脚本
		
		 getQueryMember:CTX+"/shopadmin/Member/getShopMember.do",//会员列表
		
		 getQueryMemberLevel:CTX+"/shopadmin/Member/getMemberLevel.do",//会员等级列表
		
		 addMcmember:CTX+"/shopadmin/Member/addMcmember.do",//添加会员

		 getQueryMemberDetail:CTX+"/shopadmin/Member/getMemberDetails.do",//会员详情
		
		 editMemberById:CTX+"/shopadmin/Member/editMemberById.do",//会员详情
			
};

/**
 * 创建账户流水对象
 */
ddf.account={
		 account_js:CTX+"/admin/shop/js/account/account.js",//账户流水 脚本
		
		 getQueryAccount:CTX+"/shopadmin/Account/getAccountDetails.do",//账户流水列表
		
		 getQueryOperType:CTX+"/shopadmin/Account/queryOperType.do",//流水类型列表
		
		 getAccountDetail:CTX+"/shopadmin/Account/getAccountDetailsById.do",//账户流水详情
};



/**
 * 创建提现管理对象
 * @returns
 */
ddf.withdraw={
		 withdrawSettle_js:CTX+"/admin/shop/js/withdraw/withdrawSettle.js",//提现日志 脚本
		
		 getQueryWithdrawSettleList:CTX+"/shopadmin/Withdraw/querySettle.do",//提现日志列表
		
		 withdraw_js:CTX+"/admin/shop/js/withdraw/withdraw.js",//提现 脚本
		
		 getwithdraw:CTX+"/shopadmin/Withdraw/withdraw.do",//获得账户信息
			
		 bindBankCard:CTX+"/shopadmin/Withdraw/getBindBankCard.do",//绑定银行卡
		 
		 addwithdraw:CTX+"/shopadmin/Withdraw/settleApply.do",//提现申请
};

/**
 * 创建日志管理对象
 */
ddf.log={
		 terminalLog_js:CTX+"/admin/shop/js/log/terminalLogs.js",//终端日志对象
		
		 queryTerminalLogs:CTX+"/shopadmin/TerminalLog/queryTerminalLog.do",//终端日志列表
		
		 getQueryType:CTX+"/shopadmin/TerminalLog/querylogType.do",//查询操作类型
};


/**
 * 创建银行管理对象
 * @returns
 */
ddf.bank={
		 bank_js:CTX+"/admin/shop/js/bank/bank.js",//银行对象
		
		 queryBank:CTX+"/shopadmin/Banks/getBankAccountsDetails.do",//银行卡列表
		
		 queryBankParamsList:CTX+"/shopadmin/Banks/getBanksParams.do",//银行列表
		
		 bindBankCard:CTX+"/shopadmin/Banks/getBindBankCard.do",//绑定银行卡
		
		 unbindbanksCard:CTX+"/shopadmin/Banks/unBindBanks.do",//解绑银行卡
		
		 rebindbanksCard:CTX+"/shopadmin/Banks/reBindBanks.do",//重新绑定银行卡
		
		 setdefaultaccount:CTX+"/shopadmin/Banks/setDefaultAccounts.do",//重新绑定银行卡
};


/**
 * 创建终端监控对象
 * @returns
 */
ddf.terminal={
		terminal_js:CTX+"/admin/shop/js/terminal/terminal.js",//银行对象
		
		queryTerminal:CTX+"/shopadmin/Shop/queryTerminalByShopId.do",//银行卡列表
};


/**
 * 创建操作员对象
 * @returns
 */
ddf.operator={
		 operator_js:CTX+"/admin/shop/js/operator/operator.js",//操作员对象
		
		 queryOperator:CTX+"/shopadmin/UserShop/queryAllByShopId.do",//操作员列表
};

/**
 * 安全设置
 * @returns
 */
ddf.safeSet={
		 safeSet_js:CTX+"/admin/shop/js/safeSet/safeSet.js",//安全设置对象
		
		 querysafeSet:CTX+"/shopadmin/SafeSet/queryMessage.do",//显示安全设置信息
		
		 showMobile:CTX+"/shopadmin/SafeSet/showMobile.do",//显示商家手机号码
		
		 resetMobile:CTX+"/shopadmin/SafeSet/resetMobile.do",//重置商家手机号码
		
		 resetLoginPwd:CTX+"/shopadmin/SafeSet/resetLoginPwd.do",//重置登录密码
		
		 resetPayPwd:CTX+"/shopadmin/SafeSet/resetPayPwd.do",//重置支付密码
		 
		 queryAccount:CTX+"/shopadmin/SafeSet/queryAccount.do",//查询账户信息
		 
		 addUserAccount:CTX+"/shopadmin/SafeSet/addUserAccount.do",//新增支付密码
		 
		 showPersonMobile:CTX+"/shopadmin/SafeSet/showPersonMobile.do",//显示个人手机号码
			
		 resetPersonMobile:CTX+"/shopadmin/SafeSet/resetPersonMobile.do"//重置个人手机号码
};

/**
 * 添加用户并成为店员
 */
ddf.staff={
		staff_js:CTX+"/admin/shop/js/addStaff/staff.js", //添加用户，并将成为店员
		getUsersList:CTX+"/shopadmin/Shop/getRsUsersList.do",//请求用户列表
		addUsersStaff:CTX+"/shopadmin/Shop/addUsersStaff.do",//添加用户，并将用户加入店员 
		delShopUsers:CTX+"/shopadmin/Shop/delShopUsers.do",//删除店员
		queryAllUser:CTX+"/shopadmin/Shop/queryAllUser.do", //查找所有用户
		editUserPwd:CTX+"/shopadmin/UserShop/editUserPwd.do", //修改密码
		toAssignRole:CTX+"/shopadmin/Role/toAssignRole.do",//分配角色
		assignRole:CTX+"/shopadmin/Role/assignRole.do",//确认分配
 };

/**
 * 角色管理
 */
ddf.role={
		role_js:CTX+"/admin/shop/js/role/role.js",//角色 脚本
		
		getQueryRole:CTX+"/shopadmin/Role/list.do",//角色列表
		
		addRole:CTX+"/shopadmin/Role/add.do",//添加角色
		
		getRoleDetails:CTX+"/shopadmin/Role/toEdit.do",//角色详情
		
		updateRoleDetails:CTX+"/shopadmin/Role/edit.do",//保存修改的角色详情
		
		getQueryRoleAuthDetails:CTX+"/shopadmin/Role/toAssignAuth.do",//查询该角色的权限详情
		
		getQuerySystemAuthForm:CTX+"/shopadmin/Role/querySystemAuth.do",//加载该系统中的权限
		
		assignAuth:CTX+"/shopadmin/Role/assignAuth.do",//分配权限
		
		getRoleUsers:CTX+"/shopadmin/Role/getRoleUsers.do",//获取角色用户
		
		delRoleUser:CTX+"/shopadmin/Role/delRoleUser.do",//删除角色用户
		
		addRoleUsers:CTX+"/shopadmin/Role/addRoleUsers.do"//添加角色用户
};

/**
 * 推送消息管理
 */
ddf.pushMessage={
		pushMessage_js:CTX+"/admin/shop/js/pushMessage/pushMessage.js",//推送消息脚本
		queryPushMessageList:CTX+"/shopadmin/PushMessage/queryPushMessageList.do",//查询推送消息
		pushMessageToUser:CTX+"/shopadmin/PushMessage/pushMessageToUser.do"//查询推送消息
		
};

/**
 * 创建生产厂家对象
 */
ddf.vendor= {
	getVendorList:CTX+"/admin/Vendor/queryVendors.do"//查询厂家
};

/**
 * 创建反馈信息对象
 */
ddf.feedback= {
	feedback_js:CTX+"/admin/shop/js/feedback/feedback.js",
	getFeedbackList:CTX+"/shopadmin/FeedBack/getFeedbackList.do",//查询
	addFeedback:CTX+"/shopadmin/FeedBack/addFeedback.do"//
};
/**
 * 创建购物车对象
 */
ddf.cart= {
	cart_js:CTX+"/admin/shop/js/cart/cart.js",
	getCartList:CTX+"/shopadmin/Cart/getCartList.do"//查询
};
